import GameItemModel from "./GameItemModel";
import BaseChannel from "../sdk/base/BaseChannel";
let osMap = {
    'Android': 'android',
    "iOS": 'ios'
}
export default class BaseHelper {
    protected verson: string = '1.0'

    protected adData: GameItemModel[] = [];
    // protected c: BaseChannel;



    // set channel(c: BaseChannel) {
    //     this.c = c;
    // }

    // get channel() {
    //     return this.c;
    // }
    getBoxResult() {
        return 0;
    }

    isOpen() {
        return false;
    }

    getBannerTime() {

        return 30;
    }

    getClickParent(): any[] {
        return [0.4, 0.7];
    }
    getClickBack() {

        return 10;
    }
    getClickAdd() {

        return 15;
    }

    updateClickNum() {

    }

    getClickResult() {
        return 0;
    }

    setVersion(v: string) {
        this.verson = v;
    }


    hasNativeNextLimit() {
        return false
    }

    hasFriend() {
        return false;
    }

    getFriendDuration() {
        return 0
    }

    hasEgg() {
        return false;
    }

    loadConfig() {

    }

    hasNativeAd() {
        return false;
    }

    login(param?: any) {

    }
    getProcessTime() {
        return 0
    }

    getBannerRefreshTime() {
        return 30
    }
    isShowAgain() {
        return false;
    }

    getRewardNum() {
        return 1;
    }


    isVersion() {
        return false
    }

    isOpenNativeErrorClick() {
        return false
    }

    isSwtichOpen() {
        return false
    }

    isSystemOpen() {
        return false
    }

    getBannerDelayTime() {
        return 2
    }

    getOS() {
        // return osMap[cc.sys.os]
        return ''
    }

    isErrorClickOpen() {
        return false
    }

    isStartErrorClick() {
        return false
    }

    isBannerErrorClick() {
        return false
    }


    loadAd() {

    }

    setAdClickParam(game: GameItemModel) {


    }

    getAdData() {

        return this.adData
    }

    refresh() {

    }

    hasCrazyClick() {
        return false;
    }

    sortAdData() {

    }

    changeData(m: GameItemModel) {


    }

    toOtherGame(model: GameItemModel, success?: Function, fail?: Function, complete?: Function) {

    }

    navigate2Mini(model: GameItemModel, success?: Function, fail?: Function, complete?: Function) {

    }

    //是否弹出开始游戏后的砸蛋界面
    isOpenStartEgg() {
        // let loginCount = User.instance().getLoginCount();
        return false;
    }

    firstExport() {
        return false;
    }

    hasNativeLimit() {
        return false;
    }

    hasBigExport() {
        return false;
    }

    hasLoginBanner() {
        return false;
    }

    hasDiamonView() {
        return false;
    }

    hasNativeTouchSwitch() {
        return false;
    }

    cantUseImageDataURL() {
        return false;
    }

    getNativeCloseNum() {
        return 0;
    }

    getNativeBannerRefreshTime() {
        return 30;
    }

    getJumpTime() {
        return 0
    }

    getBannerWitch() {
        return 0;
    }

    getNativeSlide() {
        return 0;
    }

    hasBanner() {
        return false;
    }

    getzs_native_gap_time() {
        return 0;
    }

    getAdSprite() {
        return 'texture/gift_sprite/gift_sprite_1024x1024_A_01_4'
    }
}
